<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>
	<xsl:param name="CtxRoot"/>
	<xsl:template match="/">
		<xsl:apply-templates select="//message/body/lists/list"/>
	</xsl:template>
	<xsl:template match="list">
		<div>
		    <xsl:attribute name="id"><xsl:value-of select="key"/></xsl:attribute>
			<span>
				<img id="img{key}">
					<xsl:choose>
						<xsl:when test="isLeaf = 'false'">
							<xsl:attribute name="src">../img/tree_plus.gif</xsl:attribute>
							<xsl:attribute name="onclick">javascript:findTest('<xsl:value-of select="key"/>');</xsl:attribute>
						</xsl:when>
						<xsl:otherwise>
							<xsl:attribute name="src">../img/tree_minus.gif</xsl:attribute>
						</xsl:otherwise>
					</xsl:choose>
				</img>
			</span>
            <span style="padding-top:5px;margin-right:5px;margin-top:0px;">
                <input type="checkbox" value="{key}" /></span>
			<span style="padding-top:5px;margin-right:5px;margin-top:0px;">
				<xsl:value-of select="value"/>
			</span>
		</div>
	</xsl:template>
</xsl:stylesheet>